package bbsimon.first.hello;

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class Hello extends HttpServlet {
	public void doGet(HttpServletRequest request, 
			HttpServletResponse response)
		throws IOException, ServletException {
			response.setContentType("text/html");
			PrintWriter out = response.getWriter();
			out.println("<html><body><h1>Hello World from Servlet"
					+ "</h1></body></html>");
		}
	public void doPost(HttpServletRequest request,
			HttpServletResponse response)
		throws IOException, ServletException {
			doGet(request, response);
		}
}
